package com.woniuxy.springboottest.handler;

import com.woniuxy.springboottest.bean.DBEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linke
 * @version 1.0
 * @className: DBHandler
 * @description: 数据库链接参数获取
 * @date 2021/11/16 17:27
 */
@RestController
@RequestMapping("/db")
public class DBHandler {
    @Autowired
    private DBEntity dbEntity;

    @RequestMapping("/datasource")
    public DBEntity getDatasource(){
        return dbEntity;
    }
}
